#ifndef LOGGER_H
#define LOGGER_H
#include <QObject>
#include <QMutex>
#include <QTextEdit>

class Logger : public QObject
{
	Q_OBJECT

	QMutex* _mutex;
	QTextEdit* _textEdit;

public:
	Logger(QTextEdit* edit, QObject* parent = 0);

public slots:
	void writeLine(QString data);
	//void writeCommand(Command*);
};

#endif // LOGGER_H
